Optimal. Leaf size=214 \[ -\frac {i c \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))^2}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (1-c^2 x^2\right ) (a+b \text {ArcSin}(c x))^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {2 b c \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x)) \log \left (1-e^{2 i \text {ArcSin}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {i b^2 c \sqrt {1-c^2 x^2} \text {PolyLog}\left (2,e^{2 i \text {ArcSin}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.42, antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4823, 4771,
4721, 3798, 2221, 2317, 2438} \begin {gather*} -\frac {\left (1-c^2 x^2\right ) (a+b \text {ArcSin}(c x))^2}{x \sqrt {c d x+d} \sqrt {e-c e x}}-\frac {i c \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))^2}{\sqrt {c d x+d} \sqrt {e-c e x}}+\frac {2 b c \sqrt {1-c^2 x^2} \log \left (1-e^{2 i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{\sqrt {c d x+d} \sqrt {e-c e x}}-\frac {i b^2 c \sqrt {1-c^2 x^2} \text {Li}_2\left (e^{2 i \text {ArcSin}(c x)}\right )}{\sqrt {c d x+d} \sqrt {e-c e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3798
Rule 4721
Rule 4771
Rule 4823
Rubi steps
\begin {align*} \int \frac {\left (a+b \sin ^{-1}(c x)\right )^2}{x^2 \sqrt {d+c d x} \sqrt {e-c e x}} \, dx &=\frac {\sqrt {1-c^2 x^2} \int \frac {\left (a+b \sin ^{-1}(c x)\right )^2}{x^2 \sqrt {1-c^2 x^2}} \, dx}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {\left (2 b c \sqrt {1-c^2 x^2}\right ) \int \frac {a+b \sin ^{-1}(c x)}{x} \, dx}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {\left (2 b c \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int (a+b x) \cot (x) \, dx,x,\sin ^{-1}(c x)\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {i c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (4 i b c \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {e^{2 i x} (a+b x)}{1-e^{2 i x}} \, dx,x,\sin ^{-1}(c x)\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {i c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {2 b c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (2 b^2 c \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {i c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {2 b c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}+\frac {\left (i b^2 c \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ &=-\frac {i c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {\left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{x \sqrt {d+c d x} \sqrt {e-c e x}}+\frac {2 b c \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1-e^{2 i \sin ^{-1}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}-\frac {i b^2 c \sqrt {1-c^2 x^2} \text {Li}_2\left (e^{2 i \sin ^{-1}(c x)}\right )}{\sqrt {d+c d x} \sqrt {e-c e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.70, size = 189, normalized size = 0.88 \begin {gather*} \frac {b^2 \left (-1+c^2 x^2-i c x \sqrt {1-c^2 x^2}\right ) \text {ArcSin}(c x)^2+2 b \text {ArcSin}(c x) \left (-a+a c^2 x^2+b c x \sqrt {1-c^2 x^2} \log \left (1-e^{2 i \text {ArcSin}(c x)}\right )\right )+a \left (-a+a c^2 x^2+2 b c x \sqrt {1-c^2 x^2} \log (c x)\right )-i b^2 c x \sqrt {1-c^2 x^2} \text {PolyLog}\left (2,e^{2 i \text {ArcSin}(c x)}\right )}{x \sqrt {d+c d x} \sqrt {e-c e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.36, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \arcsin \left (c x \right )\right )^{2}}{x^{2} \sqrt {c d x +d}\, \sqrt {-c e x +e}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {asin}{\left (c x \right )}\right )^{2}}{x^{2} \sqrt {d \left (c x + 1\right )} \sqrt {- e \left (c x - 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^2}{x^2\,\sqrt {d+c\,d\,x}\,\sqrt {e-c\,e\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________